package com.meitianhui.convenitenbuy.module.store.contract;

import com.meitianhui.convenitenbuy.base.BasePresenter;
import com.meitianhui.convenitenbuy.base.BaseView;
import com.meitianhui.convenitenbuy.main.model.bean.AppToken;
import com.meitianhui.convenitenbuy.module.store.model.StoreInfo;
import com.meitianhui.convenitenbuy.module.store.model.StoreType;

import java.util.List;

/**
 * Created by Administrator on 2017/11/2.
 */

public interface StoreContract {
    interface View extends BaseView<Presenter> {

        void getAppTokenSuccess(AppToken appToken);

        void getStoreListSuccess(StoreInfo data);

        void getStoreListFail(int code,String msg);

        void getStoreTypeSuccess(List<StoreType> data);

        void getDistance(String id,String content);

        void getType(String id,String content);

        void getRecommend(String id,String content);


        void onFail(int code ,String msg);
    }

    interface Presenter extends BasePresenter {

        void getAppToken();

        void getStoreList(String longitude,String latitude,String range,String storeType,String pageIndex,String pageSize);

        void getStoreType();

        void setOnDistance();

        void setOnType(List<StoreType> data);

        void setOnRecommend();

    }
}
